﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace EnetaMvc.Infrastructure
{
    public class MultiValidationException : Exception
    {
        private readonly ICollection<ValidationResult> _results;

        public MultiValidationException(ICollection<ValidationResult> results)
        {
            _results = results;
        }

        public ICollection<ValidationResult> ValidationResults
        {
            get { return _results; }
        }
    }
}
